<!--
 * @Author: Administrator 843338961@qq.com
 * @Date: 2022-07-02 14:29:49
 * @LastEditors: lihy1_wb lihaoyong@sinosoft.com.cn
 * @LastEditTime: 2022-07-04 16:25:04
 * @FilePath: \mall\src\App.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
  <div id="app">
    <keep-alive exclude="Detail">
    <router-view></router-view>
    </keep-alive>
    <main-tab-bar/>
  </div>
</template>

<script>
import MainTabBar from './components/content/mainTabbar/MainTabBar.vue'

export default {
  name: 'App',
  components: {
    MainTabBar
  },
  created(){
    // const cartItems =[{
    //                     isChecked:false,
    //                     count:1,
    //                     desc:'2018秋季新款韩版百搭格子长袖衬衫+前短后长针织气质开衫外套+高腰直筒九分牛仔裤三件套装',
    //                     iid:"1m70y5k",
    //                     img:'//s11.mogucdn.com/mlcdn/c45406/180808_600abce0g8dc8i4f6ic7k27i7837l_640x960.jpg',
    //                     price:'59.00',
    //                     title:'2018秋季新款韩版百搭格子长袖衬衫+前短后长针织气质开衫外套+高腰直筒九分牛仔裤三件套装'
    //                 }]
    const cartItems =[]
    this.$store.state.cartItems=cartItems
    const goodsList = []
    for(let i=1;i<12;i++){
      goodsList.push(
          {
            "image":require("assets/img/cart/back.png"),
            "iid":i+1,
            "title":"书包"+i,
            "price":10+i*0.5+10*0.8,
            "collect":"背包"+i,
            "desc":"2022新款背包"+i,
            "realPrice":(10+i*0.5+10)*0.8,
            "oldPrice":10+i*0.5+10,
            "discount":"8折",
          }
       )
    }
    this.$store.state.goodsList=goodsList
    }
}
</script>

<style>
@import './assets/css/base.css';
* { touch-action: none;}
</style>
